<?php

    class suppliers_model extends MY_Model
    {

        function __construct()
        {
            parent::__construct();
            $this->table='suppliers';

        }

        function find_by_id($supplier_ID)
        {
            $q="
            SELECT *
            FROM suppliers
			WHERE ID =  $supplier_ID
            ";

            $res=$this->db->query($q)->row_array();
            return $res;
        }





    }

?>
